package com.hutu.comment.adaptor;

import com.hutu.comment.domain.dto.ResultDto;

import java.util.List;

public class ResultDtoAdaptor {
    public static ResultDto adapt(List<String> tags, Long visitedCount,boolean liked, boolean collected, Long commentCount, String html) {
        ResultDto resultDto = new ResultDto();
        resultDto.setTags(tags);
        resultDto.setVisitedCount(visitedCount);
        resultDto.setCollected(collected);
        resultDto.setLiked(liked);
        resultDto.setCommentCount(commentCount);
        return resultDto;
    }
}
